package com.five.api.service.impl;

import com.five.api.dao.CourseClassifyMapper;
import com.five.api.service.CourseClassifyService;
import com.five.entity.CourseClassify;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: star
 * @Date: 2021-05-21 14:16
 *
 * 学习足迹Service层实现类
 */
@Service
public class CourseClassifyServiceImpl implements CourseClassifyService {

    @Autowired
    private CourseClassifyMapper courseClassifyMapper;

    private Logger logger = LoggerFactory.getLogger(CourseClassify.class);

    @Override
    public List<CourseClassify> query() {

        List<CourseClassify> courseClassifies = courseClassifyMapper.selAll();

        logger.debug("获取课程分类"+courseClassifies.toString() );

        return courseClassifies;
    }
}
